# coding: utf-8
# @Author: ChuiZi

from lib.frameTool import createReport
from lib.frameTool import sendEmail
from settings import reportFormat, emailData


def main():
    createReport.run(reportFormat)  # 执行测试,生成测试报告
    if emailData["switch"]:  # 发送邮件
        sendEmail.sendEmail()


if __name__ == '__main__':
    main()